<!--
Ceci est un joli test<br/>
<?php echo base_url(); ?><br/>
<?php echo $oldmap['name']; ?><br/>
<?php if( empty( $oldcitizens ) ): ?>
Pas de données pour cette ville.<br/>
<?php else: print_r( $oldcitizens ); ?><br/>
<?php endif; ?>
<br/>
<?php echo $city['name']; ?><br/>-->
<?php //print_r( $citizens ); ?><br/>

<TABLE width='100%'>
<TR><TD width='50%' valign='top'>
<h3>Ville de <?php echo $oldmap['name']; ?></h3>


	<?php
	
		if (empty($oldcitizens)) echo "Pas de données pour cette ville...";
		else {
			echo "<table cellpadding=0 width='90%' border class='citizens_table'>";
			
			foreach ($oldcitizens as $citizen) 
			{ //id
			  //nickname
			  //avatar
				if (isset($citizen['avatar']) AND @$citizen['avatar'] != '') $avatar = "<img src='http://imgup.motion-twin.com/".$citizen['avatar']."' width=90 height=30/>";
				else $avatar = '';
				
				echo "<tr><td width=90 height=30 style='background-image:url(".base_url()."assets/img/avatarBg.gif)'>".$avatar."</td>
						  <td><b> ".$citizen['nickname']."</b></td>
						  <td width=50><a href='#' class='boutton'>+</a> <a href='#' class='boutton'>-</a></td>
					  </tr>";
						  
			
			
			}
			
			echo "</table>";
		}
	
	?>




</TD><TD width='50%' valign='top'>

<h3>Ville de <?php echo $city['name']; ?></h3>
<table cellpadding=0 width='90%' border class='citizens_table'>

	<?php
		
		foreach ($citizens as $citizen) 
		{ //id
		  //nickname
		  //avatar
			if (isset($citizen['avatar']) AND @$citizen['avatar'] != '') $avatar = "<img src='http://imgup.motion-twin.com/".$citizen['avatar']."' width=90 height=30/>";
			else $avatar = '';
			
			echo "<tr><td width=90 height=30 style='background-image:url(".base_url()."assets/img/avatarBg.gif)'>".$avatar."</td>
					  <td><b> ".$citizen['nickname']."</b></td>
					  <td width=50><a href='#' class='boutton'>+</a> <a href='#' class='boutton'>-</a></td>
			      </tr>";
					  
		
		
		}
	
	?>


</table>
</TD></TR></TABLE>